package com.ay272.ssh.action;

import com.ay272.ssh.biz.QianDaoBiz;
import com.ay272.ssh.entity.QianDao;
import com.opensymphony.xwork2.ActionSupport;

/**
 * Created by java on 2016/5/13.
 */
public class QianDaoAction extends ActionSupport {
    private QianDaoBiz biz;
    private QianDao  qianDao;
    private Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public QianDaoBiz getBiz() {
        return biz;
    }

    public void setBiz(QianDaoBiz biz) {
        this.biz = biz;
    }

    public QianDao getQianDao() {
        return qianDao;
    }

    public void setQianDao(QianDao qianDao) {
        this.qianDao = qianDao;
    }
 public String qian(){
     try {


     this.biz.doQianDao(qianDao);
     this.data="OK......";
     }catch (Exception e){
         this.data="SORRY";
         e.printStackTrace();
     }
     return SUCCESS;
 }
}
